/*===========================================================================================
	Wolf Prop Protection
		By Goluch
			DO NOT UPLOAD TO GARRYSMOD.ORG
			
			
	Section: Splash Screen
===========================================================================================*/
Msg("===================================\n");
Msg("	Wolf Prop Protection By GOLUCH	\n");
Msg("===================================\n");

WPP = { };
local WPP = WPP; --Faster Access
WPP.Rev = 3.36;
WPP.Credits = { "Goluch" };

/*===========================================================================================
	Section: Cvars
===========================================================================================*/
	CreateConVar( "wpp_allow_use_on_world", "1", { FCVAR_REPLICATED });
	CreateConVar( "wpp_allow_admins", "2", { FCVAR_REPLICATED });
	CreateConVar( "wpp_anti_noclip", "1", { FCVAR_REPLICATED });
	CreateConVar( "wpp_auto_cleanup", "300", { FCVAR_REPLICATED });
	CreateConVar( "wpp_auto_admins", "0", { FCVAR_REPLICATED });
	CreateConVar( "wpp_stop_damage", "1", { FCVAR_REPLICATED });

/*===========================================================================================
	Section: Client Side Files
===========================================================================================*/
if ( SERVER ) then	
	AddCSLuaFile("Core.lua");
	AddCSLuaFile("Actions.lua");
	AddCSLuaFile("Action_Physgun.lua");
	AddCSLuaFile("Action_PickUp.lua");
	AddCSLuaFile("Action_Use.lua");
	AddCSLuaFile("Action_Tool.lua");
	AddCSLuaFile("Action_NoClip.lua");
	AddCSLuaFile("Action_Damage.lua");
	AddCSLuaFile("Owner.lua");
	AddCSLuaFile("Trust.lua");
	AddCSLuaFile("Misc.lua");
	AddCSLuaFile("CPPI.lua");
	AddCSLuaFile("HUD.lua");
	AddCSLuaFile("Derma_TickBox.lua");
	AddCSLuaFile("Derma_TickBar.lua");
	AddCSLuaFile("Menu.lua");
	AddCSLuaFile("ShareMenu.lua");
	AddCSLuaFile("AdminMenu.lua");
	//AddCSLuaFile("TrustSave.lua");
end

/*===========================================================================================
	Section: Includes
===========================================================================================*/

include("Actions.lua");
include("Action_Physgun.lua");
include("Action_PickUp.lua");
include("Action_Use.lua");
include("Action_Tool.lua");
include("Action_NoClip.lua");
include("Action_Damage.lua");
include("Owner.lua");
include("Trust.lua");
include("Misc.lua");
include("CPPI.lua");

if ( SERVER ) then
	include("Console.lua")
else
	include("HUD.lua");
	include("Derma_TickBox.lua");
	include("Derma_TickBar.lua");
	include("Menu.lua");
	include("ShareMenu.lua");
	include("AdminMenu.lua");
	//include("TrustSave.lua");
end


/*===========================================================================================
	Section: Server Tags
===========================================================================================*/
local Tags = GetConVar( "sv_tags" ):GetString();
if ( !string.find( Tags, "WPP" ) ) then
	RunConsoleCommand( "sv_tags", Tags .. ",WPP" );
end

/*===========================================================================================
	Section: End Splash
===========================================================================================*/
Msg("Ver: " .. WPP.Rev .. "\n")
local Credits = "Credits: ";
for _,Name in pairs(WPP.Credits) do
	Credits = Credits .. Name .. ", ";
end
Msg(Credits);
Msg("\n===================================\n");